#-*- coding: utf-8 -*-
#

d1 = {'Programacao 1' : 15 ,'Programacao 2' : 13 ,'Matematica' : 12 ,'Linguagens de Programacao' : 17}
d1 [ 'Algebra' ] = 13

media = 0.0
c=0
for valor in d1.itervalues():
	media += valor
	c += 1
media /=c

print "media = ", media
for chave, valor in d1.iteritems():
	print chave, valor
